home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / Goodies / AddFilesToObjectMasterProject next >
Encoding:
Text File  |  1994-04-21  |  1.2 KB  |  31 lines  |  [TEXT/MPS ]

  1. ##========================================================================================
  2. ## AddFilesToObjectMasterProject
  3. ##
  4. ## This MPW script uses the MPW tool OM_SendAE (provided by Object Master) to add files
  5. ## to an Object Master project.
  6. ##
  7. ## Requirements:
  8. ##        MPW, Object Master, and Apple Script
  9. ##
  10. ## Usage:
  11. ##        1.    Launch Object Master and open an empty project. Note, the project:
  12. ##                OpenDoc Parts Framework∫Goodies∫
  13. ##             contains Mac and Windows empty projects with suitable macro settings.
  14. ##        2.    Switch to MPW and enter the command:
  15. ##                AddFilesToObjectMasterProject
  16. ##
  17. ## Thanks to Tom McRae!
  18. ##========================================================================================
  19.  
  20. # Folders to parse
  21. set BedProjectFolders "`catenate {BedToolsDir}AutoTarg.txt | StreamEdit -e '/:≈/ Replace // ":" -c ∞'`"
  22.  
  23. # Tell Object Master to add the text files in the {BedProjectFolders} folders
  24. set ScriptFile "{BedTempDir}AddFilesToOM.temp"
  25. echo '## Temporary file used by script: AddFilesToObjectMasterProject' > "{ScriptFile}"
  26. For projectFolder in {BedProjectFolders}
  27.     echo OM_SendAE APRJ -LISTFILEalis ∂`files -r -o -f -t TEXT {projectFolder} ∂| search /.[chtk]/ ∂| search -r /nb.[ch]/∂` >> "{ScriptFile}"
  28. End
  29. Execute "{ScriptFile}"
  30. Delete "{ScriptFile}"
  31.